package com.share.design.builder;

import java.util.ArrayList;
import java.util.List;

/**
 * author:caifan
 * date:2020/2/4
 */
public class Car {
    List<String> parts = new ArrayList<>();

    public void add(String part) {
        parts.add(part);
    }

    public void show() {
        for (String p : parts) {
            System.out.println("part:" + p);
        }
    }

}
